package com.demo.entity;

import java.io.Serializable;
import java.util.Objects;

/**
 * 商品类
 *
 * @author FCG
 */
public class Goods implements Serializable {
    private static final long serialVersionUID = -6821590055539365552L;
    /**
     * 商品id
     */
    private String goodsId;
    /**
     * 用户id
     */
    private String buyerId;

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getBuyerId() {
        return buyerId;
    }

    public void setBuyerId(String buyerId) {
        this.buyerId = buyerId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Goods goods = (Goods) o;
        return Objects.equals(goodsId, goods.goodsId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(goodsId);
    }

    @Override
    public String toString() {
        return "Goods{" +
                "goodsId='" + goodsId + '\'' +
                ", buyerId='" + buyerId + '\'' +
                '}';
    }
}
